<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>SSO Client Demo - Home</title>
</head>
<body>
<h1>欢迎来到客户端首页！</h1>
<div th:if="${userName}">
    <p>你好, <span th:text="${userName}">User</span>!</p>
    <p>你的属性: <pre th:text="${#maps.toString(userAttributes)}">Attributes</pre></p>
    <form th:action="@{/logout}" method="post">
        <input type="submit" value="退出登录"/>
    </form>
</div>
<div th:unless="${userName}">
    <p>你尚未 <a href="/login">登录</a>。</p>
</div>
</body>
</html>